
CC = gcc
CFLAGS = -Wall -o0 -g
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c, %.o, $(SRC))
APP = Client

$(APP): $(OBJ) 
	$(CC) $(CFLAGS) -o $@ $^ -lpthread

#%.o: %.c
#	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	$(RM) $(OBJ) $(APP)

install:
	sudo cp $(APP) /usr/local/bin

.PHONY: clean  #伪目标，强制更新


